﻿using System;
using Dos.ORM;

namespace Dos.Model
{
    /// <summary>
    /// 实体类lpsos_value。(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Table("lpsos_ci123")]
    [Serializable]
    public partial class lpsos_ci123 : Entity
    {
        #region Model
        private int _ID;
        private string _Title;
        private string _Summary;
        private string _Info;
        private string _Categoy;
        private string _Tag;
        private string _PublishDate;
        private string _Author;
        private string _AuthorLink;
        private string _Link;
        private DateTime? _AddTime;
        private string _Key;

        /// <summary>
        /// 
        /// </summary>
        [Field("ID")]
        public int ID
        {
            get { return _ID; }
            set
            {
                this.OnPropertyValueChange("ID");
                this._ID = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        [Field("Title")]
        public string Title
        {
            get { return _Title; }
            set
            {
                this.OnPropertyValueChange("Title");
                this._Title = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        [Field("Summary")]
        public string Summary
        {
            get { return _Summary; }
            set
            {
                this.OnPropertyValueChange("Summary");
                this._Summary = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        [Field("Info")]
        public string Info
        {
            get { return _Info; }
            set
            {
                this.OnPropertyValueChange("Info");
                this._Info = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        [Field("Categoy")]
        public string Categoy
        {
            get { return _Categoy; }
            set
            {
                this.OnPropertyValueChange("Categoy");
                this._Categoy = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        [Field("Tag")]
        public string Tag
        {
            get { return _Tag; }
            set
            {
                this.OnPropertyValueChange("Tag");
                this._Tag = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        [Field("PublishDate")]
        public string PublishDate
        {
            get { return _PublishDate; }
            set
            {
                this.OnPropertyValueChange("PublishDate");
                this._PublishDate = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        [Field("Author")]
        public string Author
        {
            get { return _Author; }
            set
            {
                this.OnPropertyValueChange("Author");
                this._Author = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        [Field("AuthorLink")]
        public string AuthorLink
        {
            get { return _AuthorLink; }
            set
            {
                this.OnPropertyValueChange("AuthorLink");
                this._AuthorLink = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        [Field("Link")]
        public string Link
        {
            get { return _Link; }
            set
            {
                this.OnPropertyValueChange("Link");
                this._Link = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        [Field("AddTime")]
        public DateTime? AddTime
        {
            get { return _AddTime; }
            set
            {
                this.OnPropertyValueChange("AddTime");
                this._AddTime = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        [Field("Key")]
        public string Key
        {
            get { return _Key; }
            set
            {
                this.OnPropertyValueChange("Key");
                this._Key = value;
            }
        }
        #endregion

        #region Method
        /// <summary>
        /// 获取实体中的主键列
        /// </summary>
        public override Field[] GetPrimaryKeyFields()
        {
            return new Field[] {
                _.ID,
            };
        }
        /// <summary>
        /// 获取列信息
        /// </summary>
        public override Field[] GetFields()
        {
            return new Field[] {
                _.ID,
                _.Title,
                _.Summary,
                _.Info,
                _.Categoy,
                _.Tag,
                _.PublishDate,
                _.Author,
                _.AuthorLink,
                _.Link,
                _.AddTime,
                _.Key,
            };
        }
        /// <summary>
        /// 获取值信息
        /// </summary>
        public override object[] GetValues()
        {
            return new object[] {
                this._ID,
                this._Title,
                this._Summary,
                this._Info,
                this._Categoy,
                this._Tag,
                this._PublishDate,
                this._Author,
                this._AuthorLink,
                this._Link,
                this._AddTime,
                this._Key,
            };
        }
        /// <summary>
        /// 是否是v1.10.5.6及以上版本实体。
        /// </summary>
        /// <returns></returns>
        public override bool V1_10_5_6_Plus()
        {
            return true;
        }
        #endregion

        #region _Field
        /// <summary>
        /// 字段信息
        /// </summary>
        public class _
        {
            /// <summary>
            /// * 
            /// </summary>
            public readonly static Field All = new Field("*", "lpsos_value");
            /// <summary>
			/// 
			/// </summary>
			public readonly static Field ID = new Field("ID", "lpsos_value", "");
            /// <summary>
			/// 
			/// </summary>
			public readonly static Field Title = new Field("Title", "lpsos_value", "");
            /// <summary>
			/// 
			/// </summary>
			public readonly static Field Summary = new Field("Summary", "lpsos_value", "");
            /// <summary>
			/// 
			/// </summary>
			public readonly static Field Info = new Field("Info", "lpsos_value", "");
            /// <summary>
			/// 
			/// </summary>
			public readonly static Field Categoy = new Field("Categoy", "lpsos_value", "");
            /// <summary>
			/// 
			/// </summary>
			public readonly static Field Tag = new Field("Tag", "lpsos_value", "");
            /// <summary>
			/// 
			/// </summary>
			public readonly static Field PublishDate = new Field("PublishDate", "lpsos_value", "");
            /// <summary>
			/// 
			/// </summary>
			public readonly static Field Author = new Field("Author", "lpsos_value", "");
            /// <summary>
			/// 
			/// </summary>
			public readonly static Field AuthorLink = new Field("AuthorLink", "lpsos_value", "");
            /// <summary>
			/// 
			/// </summary>
			public readonly static Field Link = new Field("Link", "lpsos_value", "");
            /// <summary>
			/// 
			/// </summary>
			public readonly static Field AddTime = new Field("AddTime", "lpsos_value", "");
            /// <summary>
			/// 
			/// </summary>
			public readonly static Field Key = new Field("Key", "lpsos_value", "");
        }
        #endregion
    }
}